<template>
  <div>
    <div class="wrap">
      <img :src="getList.imageUrl" alt="" />
      <div style="margin: 0 auto">
        <div class="itembox flex">
          <div style="width: 40%">
            <span style="color: #02d1e1">车牌号: </span>
            <span style="color: #fff88a">{{ getList.device_name }}</span>
          </div>
          <div style="width: 60%">
            <span style="color: #02d1e1">告警位置: </span
            ><span style="color: #fff88a">
              {{ getList.address }}
            </span>
          </div>
        </div>
        <div class="itembox flex" style="padding-top: 0.6vw">
          <div style="width: 40%">
            <span style="color: #02d1e1">当前车速: </span>
            <span style="color: #fff88a">{{ getList.notes }}</span>
          </div>
          <div style="width: 60%">
            <span style="color: #02d1e1">告警时间: </span>
            <span style="color: #fff88a">{{ getList.alarm_time }}</span>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>
<script>
import { mapState, mapMutations, mapActions } from "vuex";

export default {
  name: "publicvideo",
  props: {
    title: String,
    list: {
      type: Object,
      default: function () {
        return {};
      },
    },
  },
  components: {},

  // 计算属性，会监听依赖属性值随之变化
  computed: {
    getList() {
      return this.list;
    },
  },
  methods: {
    ...mapMutations(["setPicShow"]),
    closeVideoBox() {
      this.$emit("close");
    },
  },
};
</script>
<style lang="scss" scoped>
.winvideo {
  position: absolute;

  top: 5vw;
  bottom: 14vw;
  left: 40vw;
  right: 40vw;
}
.flex {
  display: flex;
  justify-content: space-between;
}
.top {
  padding: 0.5vw 0.5vw;
  background-image: linear-gradient(
    90deg,
    rgba(3, 83, 165, 0.72) 0%,
    rgba(3, 56, 117, 0.93) 61%,
    rgba(3, 53, 110, 0.96) 100%
  );
  color: #fff;
}
.close {
  cursor: pointer;
}
.wrap {
  padding: 0.4vw 0.4vw;
  background: #222;
  box-sizing: border-box;
}
.wrap img {
  display: block;
  width: 100%;
  height: 80%;
}
.itembox {
  width: 100%;
  color: #fff;
  box-sizing: border-box;
  padding-top: 0.6vh;
  font-size: 0.8vw;
}
</style>
